import request from '@/utils/request'

let AnnouncementApi = {
  announcementList(data, errorback) {
    return request._postBody('/shop/announcement/lists', data, errorback);
  },
  addAnnouncement(data, errorback) {
    return request._postBody('/shop/announcement/add', data, errorback);
  },
  editAnnouncement(data, errorback) {
    return request._postBody('/shop/announcement/edit', data, errorback);
  },
  delAnnouncement(data, errorback) {
    return request._post('/shop/announcement/delete', data, errorback);
  },
  pushOrDown(data, errorback) {
    return request._post('/shop/announcement/pushOrDown', data, errorback);
  },
}
export default AnnouncementApi;
